<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName()
			+ ":" + request.getServerPort() + request.getContextPath();
%>
<jsp:include page="/WEB-INF/page/auth/_header.jsp"></jsp:include>
<body>
	<jsp:include page="/WEB-INF/page/auth/header.jsp"></jsp:include>
	<div id="middle">
		<jsp:include page="/WEB-INF/page/auth/menu.jsp"></jsp:include>
		<div id="right">
		    <div id="student_totaltb">
		        <form id="student_totalForm" class="m10">
		           	<span>${term.termName}</span>
		            <select class="form-control1" name="grade" id="grade"></select>
					<input type="hidden" id="schoolId" name="schoolId" value=""/>
		            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-search'" onclick="searchForm('student_total')">查询</a>
		            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-clear'" onclick="resetForm('student_total')">重置</a><br/>
		        </form>
		    </div>
		    <table id="student_totaldg">
		        <thead>
		        	<tr>
			            <th data-options="field:'gradeName',title:'年级名称',width:50"></th>
		                <th data-options="field:'clazz',title:'班号',width:50"></th>
		                <th data-options="field:'num',title:'人数',width:50"></th>
		                <th data-options="field:'classTeacher',title:'班主任',width:50"></th>
		        	</tr>
		        </thead>
		    </table>
		</div>
	</div>
	<jsp:include page="/WEB-INF/page/auth/_footer.jsp"/>
	<script type="text/javascript">
		$(function(){
			initSchoolIdInputValue();
	        var url = basePath + "/sys/student/total";
	        initDatagrid("student_total", url);
	        initGrade("student_total");
	        initSubject("student_total");
	    });

		function initSchoolIdInputValue() {
			var v1 = $("#userSchoolId").val();
			$("#schoolId").val(v1);
		}

	</script>
</body>
</html>